package com.hm.pan.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hm.pan.mapper.MoveFileMapper;
import com.hm.pan.model.UserFile;
import com.hm.pan.service.MoveFileService;

@Service
public class MoveFileServiceImpl implements MoveFileService {
	
	@Resource
	private MoveFileMapper moveFileMapper;
	
	@Override
	public Boolean cutFile(Long fatherId, Integer userfileId) {
		return moveFileMapper.cutFile(fatherId, userfileId);
	}

	//查找一个文件的全部信息
	@Override
	public UserFile getOneFile(Integer userfileId) {
		// TODO Auto-generated method stub
		return moveFileMapper.getOneFile(userfileId);
	}

	//创建一个新的文件
	@Override
	public Boolean copyFile(UserFile userFile) {
		// TODO Auto-generated method stub
		return moveFileMapper.copyFile(userFile);
	}

}
